<template>
	<div name="detailsBankeTabs" >
		<van-tabbar v-model="tabbarTempValue" @change="onChange">
			<van-tabbar-item  icon="point-gift-o"  >资源</van-tabbar-item>
			<van-tabbar-item  icon="friends-o"  >成员</van-tabbar-item>
			<van-tabbar-item  icon="smile-comment-o"  >公告</van-tabbar-item>
			<van-tabbar-item  icon="qr" >详情</van-tabbar-item>
</template>

<script>
	export default {
		name: 'detailsBankeTabs',
		props: {
			active: Number
		},
		data() {
			return {
				tabbarTempValue: this.active
			}
		},
		methods: {
			onChange(index) {  
				const routerArray = [
					"bkSource",
					"bkMember",
					"bkNotice",
					"bkDetails"
				];
				this.$router.push({ name:routerArray[index] })
			}
		}
	}
</script>

<style>
</style>
